package com.logos.cartoon.handler;

import com.logos.cartoon.enums.AiModelEnum;
import com.logos.cartoon.req.ChatReq;
import com.logos.cartoon.service.ErenService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ErenHandler implements AiModelHandler{

    @Resource
    private ErenService erenService;

    @Override
    public AiModelEnum getHandlerType() {
        return AiModelEnum.AI_LUN;
    }

    @Override
    public String chat(ChatReq chatReq) {
        return erenService.chat(chatReq.getMessage());
    }
}
